package immutableclass;

import java.util.EnumMap;
import static immutableclass.ImmutableEchiquier.*;
import static immutableclass.ImmutableEchiquier.Case.*;
import static immutableclass.ImmutablePiece.Couleur.*;
import static immutableclass.ImmutablePiece.Forme.*;

import java.util.Map;

public final class ImmutablePositionInitiale {

    final private static Map<Case, ImmutablePiece> PositionInitiale =
            new EnumMap<Case, ImmutablePiece>(Case.class);


    static {
        PositionInitiale.put(a1, ImmutablePiece.valueOf(tour, blanc));
        PositionInitiale.put(b1, ImmutablePiece.valueOf(cavalier, blanc));
        PositionInitiale.put(a2, ImmutablePiece.valueOf(pion, blanc));

//        for (Case _case : Case.values()) {
//            switch (_case) {
//
//            }

//        }
    }

    private ImmutablePositionInitiale() {
    }

    public static Map<Case, ImmutablePiece> getPositionInitiale() {
        return PositionInitiale;
    }
}
